#ifndef data_package_H
#define data_package_H

#include <QObject>


class data_package : public QObject
{
    Q_OBJECT
public:
    explicit data_package(QObject *parent = nullptr);

    void receive_data(QByteArray array);
    void create_data_package(QByteArray cmd_data,QByteArray &out_package);
    void create_data_package(uint8_t *cmd_data,size_t bytes,QByteArray &out_package);
private:
    QByteArray cmd_data;

signals:
    void sig_send_data(QByteArray data);
    void sig_command_receive(QByteArray data);
};

#endif // data_package_H
